//
//  Array+Ext.swift
//  
//
//  Created by bo wang on 2020/10/5.
//  Copyright © 2020 wangbo. All rights reserved.
//

import Foundation
import Alamofire
import YYModel

extension Array {
    static func yy_model(with json: Any) -> Self? where Element: AnyObject {
        return NSArray.yy_modelArray(with: Element.self, json: json) as? Self
    }
}

extension Dictionary {
    static func yy_model(with json: Any) -> Self? where Key == String, Value: AnyObject {
        return NSDictionary.yy_modelDictionary(with: Value.self, json: json) as? Self
    }
}
